//
//  StatusForwardCell.swift
//  LBWeibo
//
//  Created by 李博 on 15/7/2.
//  Copyright © 2015年 libo. All rights reserved.
//

import UIKit
import FFAutoLayout

class StatusForwardCell: StatusCell {


    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        //forwardLabel.text = "转发微博---执着的小蛋挞转发微博---执着的小蛋挞转发微博---执着的小蛋挞转发微博---执着的小蛋挞转发微博---执着的小蛋挞"
        forwardLabel = UILabel(textColor: UIColor.darkGrayColor(), fontSize: 14, layoutWidth: UIScreen.mainScreen().bounds.width - 16)
        insertSubview(forwardLabel, atIndex: 0)
        forwardBackButton.backgroundColor = UIColor(white: 0.9, alpha: 1)
        insertSubview(forwardBackButton, atIndex: 0)
        
        //自动布局
        forwardBackButton.ff_AlignVertical(ff_AlignType.BottomLeft, referView: contentLabel, size: nil, offset: CGPoint(x: -12, y: 12))
        forwardBackButton.ff_AlignVertical(ff_AlignType.TopRight, referView: footerView, size: nil)
        //转发文字
        forwardLabel.ff_AlignInner(ff_AlignType.TopLeft, referView: forwardBackButton, size: nil, offset: CGPoint(x: 12, y: 12))
        
        // 配图视图
        recordPictureViewCons(pictureView.ff_AlignVertical(ff_AlignType.BottomLeft, referView: forwardLabel, size: CGSizeMake(290, 90), offset: CGPoint(x: 0, y: 12)))
        
        
    }

    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    lazy var forwardBackButton = UIButton()
}
